package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBehaviorBodyguardDao;
import com.fqgj.xjd.user.entity.UserBehaviorBodyguardEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: liuming
 * Date: 2019-07-03
 * Time: 15:51:01.955
 */
@Repository
public class UserBehaviorBodyguardDaoImpl extends AbstractBaseMapper<UserBehaviorBodyguardEntity> implements UserBehaviorBodyguardDao {

    @Override
    public void deleteByUserCodeAndType(String userCode, Integer type) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        params.put("type", type);
        getSqlSession().update(getStatement("deleteByUserCodeAndType"), params);
    }
}